ITEM.Name = "Combine Lock";

ITEM.Description = "Keep people out of buildings";
ITEM.Model = "models/props_combine/combine_lock01.mdl"
ITEM.CamPos = Vector( 199, -25, -14 );
ITEM.LookAt = Vector( 0, 0, 0 );
ITEM.FOV = 9;


ITEM.Price = 5

ITEM.Width = 1;
ITEM.Height = 2;

ITEM.Flags = "u";

function ITEM:Use()
	
	local trace = { }
	trace.start = self.Owner:EyePos() - Vector( 0, 0, 30 );
	trace.endpos = trace.start + self.Owner:GetAngles():Forward() * 40;
	trace.filter = self.Owner;
	
	local tr = util.TraceLine( trace );
	
	local lock = ents.Create( "ts2_combinelock" )
	lock:SetPos( tr.HitPos )
	lock:Spawn()
	lock:Activate()

end	
